function loadMdSchoolTrnmnt(idCanvas) {

	var STM_Font1 = 'bold 14px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var STM_Font2 = 'bold 20px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var STM_Font3 = 'bold 11px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var STM_FontBtn = 'bold 18px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var STM_FontRtn = 'bold 28px  "Meiryo", "MS PGothic", "ヒラギノ角ゴ Pro W3", "Osaka", "Verdana", "arial", "sans-serif"';
	var STM_SchoolTxt = '';
	var STM_SexTxt = '';
	var STM_TypeTxt = '';
	var STM_TodayTypeTxt = '';
	var STM_Today = new Date();
	var STM_SelType = 0;

	switch (Math.floor((STM_Today / 86400000)) % 5) {
	case 0:
		STM_TodayTypeTxt = '木';
		STM_TypeTxt = 'KI';
		STM_SelType = PF_S1;
		break;
	case 1:
		STM_TodayTypeTxt = '火';
		STM_TypeTxt = 'HI';
		STM_SelType = PF_S2;
		break;
	case 2:
		STM_TodayTypeTxt = '金';
		STM_TypeTxt = 'KIN';
		STM_SelType = PF_S3;
		break;
	case 3:
		STM_TodayTypeTxt = '土';
		STM_TypeTxt = 'DO';
		STM_SelType = PF_S4;
		break;
	case 4:
		STM_TodayTypeTxt = '水';
		STM_TypeTxt = 'SUI';
		STM_SelType = PF_S5;
		break;
	}

	jc.start(idCanvas, true);

	jc.text('種目別の対戦を全てクリアすると', 145, 20, 'rgb(255,255,255)').id('STM_TTxt1').font(STM_Font1).align('center');
	jc.text('全国大会出場候補との対戦権が得られます', 145, 40, 'rgb(255,255,255)').id('STM_TTxt2').font(STM_Font1).align('center');

	// 属性制限ボタン
	jc.rect(30, 60, 230, 80, 'rgba(204,255,255)', 1).layer('STM_L_1');

	// 属性制限
	jc.text('属性制限', 40, 85, 'rgb(0,0,0)').id('STM_EVNT1').font(STM_Font2).mouseover(function() {
		this.color('#ffff00');
	}).mouseout(function() {
		this.color('rgb(0,0,0)');
	}).layer('STM_L_1');

	jc.text('同じ属性の漢字だけで対戦します', 40, 110, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_1');
	jc.text('本日の属性は【', 40, 130, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_1');
	jc.text(STM_TodayTypeTxt, 145, 130, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_1');
	jc.text('】です。', 168, 130, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_1');

	jc.rect(30, 60, 230, 80, 'rgba(255,255,255)', 1).opacity(0).mouseover(function() {
		jc('#STM_EVNT1').color('#ffff00');
	}).mouseout(function() {
		jc('#STM_EVNT1').color('rgb(0,0,0)');
	}).click(function() {
		if (STM_SelType == 3) {
			var STN_1d = new Date();
			$.getJSON('../main/mdSchoolTrnmnt' + '?_=' + STN_1d.getMilliseconds(), {
				userId : userId,
				fieldType : '1',
				kanjiType : STM_TypeTxt,
				idCanvas : idCanvas
			}, callbackField, 'json');
		} else {
			alert(STM_TodayTypeTxt + '属性でない漢字を選んでいます\n編成室で変更して下さい。');
		}
	}).id('STM_B_EVNT1').layer('STM_L_1');


	// 攻撃力制限ボタン
	jc.rect(30, 170, 230, 80, 'rgba(255,255,204)', 1).layer('STM_L_2');

	// 攻撃力制限
	jc.text('攻撃力制限', 40, 195, 'rgb(0,0,0)').id('STM_EVNT2').font(STM_Font2).mouseover(function() {
		this.color('#ffff00');
	}).mouseout(function() {
		this.color('rgb(0,0,0)');
	}).layer('STM_L_2');

	jc.text('攻撃力合計が６００～９００の', 40, 220, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_2');
	jc.text('漢字の組み合わせで戦います', 40, 240, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_2');

	jc.rect(30, 170, 230, 80, 'rgba(255,255,255)', 1).opacity(0).mouseover(function() {
		jc('#STM_EVNT2').color('#ffff00');
	}).mouseout(function() {
		jc('#STM_EVNT2').color('rgb(0,0,0)');
	}).click(function() {
		if (playerAttackPoint >= 600 && playerAttackPoint <= 900) {
			var STN_2d = new Date();
			$.getJSON('../main/mdSchoolTrnmnt' + '?_=' + STN_2d.getMilliseconds(), {
				userId : userId,
				fieldType : '2',
				kanjiType : STM_TypeTxt,
				idCanvas : idCanvas
			}, callbackField, 'json');
		} else {
			alert('攻撃力が' + playerAttackPoint + 'なので、出場条件に合いません\n編成室で変更して下さい。');
		}
	}).id('STM_B_EVNT2').layer('STM_L_2');


	// ５人抜きボタン
	jc.rect(30, 280, 230, 80, 'rgba(255,204,255)', 1);

	// ５人抜き
	jc.text('５人抜き', 40, 305, 'rgb(0,0,0)').font(STM_Font2).mouseover(function() {
//		this.color('#ffff00');
	}).mouseout(function() {
//		this.color('rgb(0,0,0)');
	}).id('STM_EVNTRnd').layer('STM_L_3');

	jc.text('連続して５人と対戦します', 40, 330, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_3');
	jc.text('対戦後に体力は回復しません', 40, 350, 'rgb(0,0,0)').font(STM_Font1).layer('STM_L_3');

	jc.rect(30, 280, 230, 80, 'rgba(255,255,255)', 1).opacity(0).mouseover(function() {
//		jc('#STM_EVNTRnd').color('#ffff00');
	}).mouseout(function() {
//		jc('#STM_EVNTRnd').color('rgb(0,0,0)');
	}).click(function() {
//		var STM_3d = new Date();
//		$.getJSON('../main/mdEnemySelect' + '?_=' + STM_3d.getMilliseconds(), {
//			userId : userId,
//			idCanvas : idCanvas
//		}, callbackRansen, 'json');
	}).id('STM_B_EVNTRnd').layer('STM_L_3');


	// 戻るボタン
	jc.rect(85, 380, 120, 30, 'rgba(256,153,0)', 1).shadow({
		x : 5,
		y : 5,
		color : '#000000'
	}).id('STM_B_RMenu').mouseover(function() {
		jc('#STM_rtnMenu').color('#ffff00');
	}).mouseout(function() {
		jc('#STM_rtnMenu').color('rgb(0,0,0)');
	}).click(function() {
		jc.canvas(idCanvas).clear();
		loadMdTournament(idCanvas);
	}).layer('STM_L_5');

	// メニューへ戻る
	jc.text('戻　る', 145, 405, 'rgb(0,0,0)').font(STM_FontRtn).align('center').mouseover(function() {
		jc('#STM_rtnMenu').color('#ffff00');
	}).mouseout(function() {
		jc('#STM_rtnMenu').color('rgb(0,0,0)');
	}).id('STM_rtnMenu').layer('STM_L_5');

}